package com.qiu.controller;

import com.qiu.entity.Role;
import com.qiu.service.OrderService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    private static final Logger log = LoggerFactory.getLogger(TestController.class);
    @Autowired
    private OrderService orderService;

    @PostMapping("/test/post")
    public String testPostRequest(Integer urlTestArg1, String urlTestArg2, @RequestBody Role role) {
        orderService.selectById(urlTestArg1);
        orderService.selectById(Integer.valueOf(urlTestArg2));
        return "hello,world";
    }
}
